//
//  DepDocListTableCell.m
//  HarmonizePub
//
//  Created by rzhy on 2016/11/18.
//  Copyright © 2016年 Zy. All rights reserved.
//

#import "DepDocListTableCell.h"
#import "Config.h"

static CGFloat const cellHeight = 80.0f;

@interface DepDocListTableCell ()

@property (weak, nonatomic) IBOutlet UIImageView *headImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;

@end

@implementation DepDocListTableCell

+ (NSString *)registerName {
    return @"DepDocListTableCell";
}

+ (CGFloat)cellHeight {
    return cellHeight;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.headImageView.contentMode = UIViewContentModeScaleAspectFit;
    self.headImageView.layer.cornerRadius = 5.0f;
    self.headImageView.layer.masksToBounds = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellShowDataWithDataDictionary:(NSDictionary *)dataDict {
    self.titleLabel.text = dataDict[@"ygxm"];
    self.descriptionLabel.text = dataDict[@"description"];
    NSString *image = dataDict[@"image"];
    [self.headImageView downloadImageWithURLString:image placeholderString:@"DoctorDefault.png"];
}

@end
